import java.io.IOException;

import curves.CurveApplication;
import curves.FunctionVariations;
import function.FunVariations;
import function.Function;
import function.Functions;
import function.SyntaxErrorException;


public class TestFunction {

	public static void main(String[] args) throws SyntaxErrorException, IOException {
		//Function f = times(X, comp(SIN, times(constant(2.), X)));
		Function f = Functions.parse("* x sin x");
		FunctionVariations fv = new FunVariations(f, -2 * Math.PI, 2 * Math.PI);
		CurveApplication.start(fv);
	}
}
